package cn.zwk.request;

import java.util.Collections;
import java.util.Map;

/**
 * HTTP 响应模型（调用接口返回给评估器使用）。
 */
public final class HttpResponse {
    private final int statusCode;
    private final Map<String, String> headers;
    private final String body;

    public HttpResponse(int statusCode, Map<String, String> headers, String body) {
        this.statusCode = statusCode;
        this.headers = headers == null ? Map.of() : Map.copyOf(headers);
        this.body = body;
    }

    public int statusCode() { return statusCode; }
    public Map<String, String> headers() { return Collections.unmodifiableMap(headers); }
    public String body() { return body; }
}

